﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    <link rel="stylesheet" href="../../Content/css/style.css" />
    <link rel="stylesheet" href="../../Content/assets/css/amazeui.min.css" />
    <script type="text/javascript" src="../../Content/assets/js/jquery.min.js"></script>
    <script src="../../Content/assets/js/amazeui.min.js"></script>
    <style>
        .block {
            display: block;
        }

        .none {
            display: none;
        }
    </style>
</head>
<body>
    <div class="tell">
        <span class="am-text-warning am-icon-info am-icon-sm"></span><span class="am-text-warning">公告兰信息</span>
    </div>
    <!--top-->
    <div class="am-topbar">
        <h1 class="am-topbar-brand">
            <a href="#">XXXLOGO</a>
        </h1>

        <div class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-default am-show-sm-only" data-am-collapse="{target: '#doc-topbar-collapse'}">
            <span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>
		
        </div>

        <div class="am-collapse am-topbar-collapse" id="doc-topbar-collapse">
            <ul class="am-nav am-nav-pills am-topbar-nav">
                <li class="am-dropdown" data-am-dropdown>
                    <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">游戏开发课程 <span class="am-icon-caret-down"></span>
                    </a>
                    <ul class="am-dropdown-content">
                        <li><a href="#">1. 去月球</a></li>
                        <li><a href="#">2. 去火星</a></li>
                        <li><a href="#">3. 还是回地球</a></li>
                        <li><a href="#">4. 下地狱</a></li>
                        <li><a href="#">5. 桥头一回首</a></li>
                    </ul>
                </li>
                <li class="am-dropdown" data-am-dropdown>
                    <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">游戏制作课程 <span class="am-icon-caret-down"></span>
                    </a>
                    <ul class="am-dropdown-content">
                        <li><a href="#">1. 去月球</a></li>
                        <li><a href="#">2. 去火星</a></li>
                        <li><a href="#">3. 还是回地球</a></li>
                        <li><a href="#">4. 下地狱</a></li>
                        <li><a href="#">5. 桥头一回首</a></li>
                    </ul>
                </li>
                <li class="am-dropdown" data-am-dropdown>
                    <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">游戏学习路线 <span class="am-icon-caret-down"></span>
                    </a>
                    <ul class="am-dropdown-content">
                        <li><a href="#">1. 去月球</a></li>
                        <li><a href="#">2. 去火星</a></li>
                        <li><a href="#">3. 还是回地球</a></li>
                        <li><a href="#">4. 下地狱</a></li>
                        <li><a href="#">5. 桥头一回首</a></li>
                    </ul>
                </li>
                <li class="am-dropdown" data-am-dropdown>
                    <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">讨论小组 <span class="am-icon-caret-down"></span>
                    </a>
                    <ul class="am-dropdown-content">
                        <li><a href="#">1. 去月球</a></li>
                        <li><a href="#">2. 去火星</a></li>
                        <li><a href="#">3. 还是回地球</a></li>
                        <li><a href="#">4. 下地狱</a></li>
                        <li><a href="#">5. 桥头一回首</a></li>
                    </ul>
                </li>
            </ul>
            <!--首部搜索-->
            <form class="am-topbar-form am-topbar-left am-form-inline" role="search">
                <div class="am-form-group">
                    <input type="text" class="am-form-field am-input-sm" placeholder="搜索">
                </div>
            </form>
            <!--end 首部搜索-->
            @{Html.RenderAction("LoginStatus", "User");}
        </div>
        <!--end 搜索-->
    </div>
    @RenderBody()

</body>
</html>

<script>
    $(function () {
        var $modal = $('#your-modal');

        $modal.siblings('.am-btn').on('click', function (e) {
            var $target = $(e.target);
            if (($target).hasClass('js-modal-open')) {
                $modal.modal();
            } else if (($target).hasClass('js-modal-close')) {
                $modal.modal('close');
            } else {
                $modal.modal('toggle');
            }
        });
    });
</script>
<!--异步提交返回star-->

<script>
    $(function () {
        $("a[name='LoginOut']").click(function () {
            Ext.Msg.confirm('提示', '你确定要退出吗？', function (button, text) {
                if (button == 'yes') {
                    $.ajax({
                        type: 'post',
                        url: '@Url.Action("LoginOut", "User")',
                        cache: false,
                        dataType: 'json',
                        before: Loading($(this)),
                        success: function (data) {
                            SuccessLoginOut(data);
                        }
                    });
                }
            });
        });
    });
</script>
